﻿namespace WebChat.Models
{
    using System;
    using System.Collections.Generic;
    using System.Linq;

    public class User
    {
        public User()
        {
            this.Users = new HashSet<User>();
            this.Contacts = new HashSet<User>();
            this.Files = new HashSet<File>();
        }

        public int UserId { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string PictureUrl { get; set; }
        public string SessionKey { get; set; }

        public virtual ICollection<User> Users { get; set; }
        public virtual ICollection<User> Contacts { get; set; }
        public virtual ICollection<File> Files { get; set; }
    }
}
